#!/usr/bin/env jq
include "../testutil";

TEST("parsed variable datatype"; .deepdive_.schema.variables_byName.x;
    EXPECT_EQ( "should have correct name"         ; .variableName         ; "x"       ),
    EXPECT_EQ( "should have correct type"         ; .variableType         ; "boolean" ),
    EXPECT_EQ( "should have correct table"        ; .variablesTable       ; "x"       ),
    EXPECT_EQ( "should have correct label column" ; .variablesLabelColumn ; "is_true" ),
empty)
